#ifndef MYSET_H
#define MYSET_H

#include "MyVector.h"

class MySet : public MyVector {
public:
    MySet();

    bool IsElement(const std::string& element) const;
    void AddElement(const std::string& element);
    void DeleteElement(const std::string& element);

    MySet& operator+=(const MySet& other);
    MySet& operator-=(const MySet& other);
    MySet& operator*=(const MySet& other);

    friend std::ostream& operator<<(std::ostream& os, const MySet& set);
    friend MySet operator+(const MySet& set1, const MySet& set2);
    friend MySet operator-(const MySet& set1, const MySet& set2);
    friend MySet operator*(const MySet& set1, const MySet& set2);
    friend bool operator==(const MySet& set1, const MySet& set2);
};

#endif // MYSET_H
